#include <bits/stdc++.h>
using namespace std;
int main() {
    string a;
    cin>>a;
    float flag = true;
    for (int i = 0; i < a.length()/2; ++i) {
        if (a[i]!=a[a.length()-i-1]){
            flag = false;
            break;
        }
    }
    if(flag) cout<<a<<"是回文";
    else cout<<a<<"不是回文";
}
